Imports Microsoft.VisualBasic

Public Class UIUtilities
    Public Shared Sub RedirectToHomePage()
        If System.Web.HttpContext.Current.Session("UserName") = "systemadmin" Then
         Else

            System.Web.HttpContext.Current.Response.Redirect("~/Pages/frmPrincipal.aspx")
        End If

    End Sub
    Public Shared Sub RedirectToLoginPage()
        System.Web.HttpContext.Current.Response.Redirect("~/login.aspx")
    End Sub

 
End Class
